﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CSP.EFPF.CodeOnly;
using CSP.EFPF.Common;
using CSP.Receipts.DataModel;
namespace CSP.Receipts.Business
{
    public interface IReceiptRepository : IRepository<Receipt, ReceiptContext>
    {
        IEnumerable<Receipt> GetNewReceipts();
        IEnumerable<Receipt> SearchReceipts(string searchPattern);

        IEnumerable<Receipt> GetReceiptsByUser(int userId);
        IEnumerable<Receipt> GetReceiptsByUser(string username);

        IEnumerable<Receipt> GetReceiptsByCategory(int categoryId);
    }
}
